<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>张成 2021520489</title>
</head>
<jsp:useBean id="customer" class="com.example.demo8.TriangleBean" scope="request">


</jsp:useBean>
<jsp:setProperty name="customer" property="*"/>
<body>

<table>
    <tr>
        <th colspan="2" align="center">计算结果</th>
    </tr>

    <tr>
        <td>第 1 条边长：</td>
        <td>
            <jsp:getProperty name="customer" property="a"/>
        </td>
    </tr>
    <tr>
        <td>第 2 条边长：</td>
        <td>
            <jsp:getProperty name="customer" property="b"/>
        </td>
    </tr>
    <tr>
        <td>第 3 条边长：</td>
        <td>
            <jsp:getProperty name="customer" property="c"/>
        </td>
    </tr>
    <tr>
        <td>三角形面积：</td>
        <td>
            <jsp:getProperty name="customer" property="area"/>
        </td>
    </tr>
</table>

<h1>张成 2021520489</h1>
</body>
</html>
